package com.example.lostandfoundsystem.models.system;

import com.example.lostandfoundsystem.models.common.base.BaseEntity;
import gaarason.database.annotation.Column;
import gaarason.database.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Repository;

/**
 * @author lucifer
 * @since 2024-07-17-21:33
 */
@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Table(name = "feedback")
public class Feedback extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Column(name = "user_id", comment = "用户id")
    private String userId;

    @Column(name = "title", comment = "反馈标题")
    private String title;

    @Column(name = "content", comment = "反馈内容")
    private String content;

    @Column(name = "time", comment = "反馈时间")
    private String time;

    @Column(name = "status", comment = "处理状态")
    private String status;

    @Repository
    public static class Model extends BaseModel<Feedback, Long> {
        @Override
        protected boolean softDeleting() {
            return true;
        }
    }
}
